<?php

define('SMARTY_DIR', $_SERVER['DOCUMENT_ROOT'].'/libs/Smarty-2.6.26/libs/');
//echo $_SERVER['DOCUMENT_ROOT'].'/libs/Smarty-2.6.26/libs/';
require_once(SMARTY_DIR . 'Smarty.class.php');

$smarty = new Smarty();

$smarty->template_dir = $_SERVER['DOCUMENT_ROOT'].'/templates/';
$smarty->compile_dir  = $_SERVER['DOCUMENT_ROOT'].'/templates_c/';
$smarty->config_dir   = $_SERVER['DOCUMENT_ROOT'].'/configs/';
$smarty->cache_dir    = $_SERVER['DOCUMENT_ROOT'].'/cache/';

$smarty->left_delimiter = '{{';
$smarty->right_delimiter = '}}';

?>
